package com.adpython.domain;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * @author wenhua.yang
 * @date 2009-7-9
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Channel {
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
	
	@Persistent
	private String name;
	
	@Persistent
	private Integer rank;
	
	@Persistent
	private String title;
	
	@Persistent
	private Date updateTime;
	
	@Persistent
	private Integer updateUserId;
	
	public Channel(){
		
	}
	
	public Channel(String name,String title){
		this.name=name;
		this.title=title;
	}
	
	public void setId(Long id){
		this.id=id;
	}
	public Long getId(){
		return this.id;
	}
	
	public void setName(String name){
		this.name=name;
	}
	public String getName(){
		return this.name;
	}
	
	public void setTitle(String title){
		this.title=title;
	}
	public String getTitle(){
		return title;
	}
	
	public void setRank(Integer rank){
		this.rank=rank;
	}
	public Integer getRank(){
		return rank;
	}
	
	public void setUpdateTime(Date updateTime){
		this.updateTime=updateTime;
	}
	public Date getUpdateTime(){
		return this.updateTime;
	}
	
	public void setUpdateUserId(Integer updateUserId){
		this.updateUserId=updateUserId;
	}
	public Integer getUpdateUserId(){
		return this.updateUserId;
	}
}
